<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <title>20140923</title>
      <script src="js/w0923_1.js"></script>
      <script>
         //객체명.속성명
         /*객체명.메소드명()*/
         document.write("20140923.html문서의 head안 js");
         
         console.log("head 안");
      </script>
   </head>
   <!-- <body onload="alert('tag에 직접적용한 js');"> -->
   <body>
      <h2>Javascript</h2>
      <h3>-DOM을 이용하여 웹페이지 접근, 조작<br />
            -CSS서식 적용, 변경<br />
            -유효성검사<br />
            -동적효과등...
      </h3>
      
      <button onclick="showDate()">click</button>
      <p id="i1"></p>
      <script>
         document.write("<p/>w0923_1.html문서의 head안 js<br/>");
         
         // 함수선언
         function showDate(){
            // document.write(Date());
            d = new Date();
            document.getElementById("i1").innerHTML=d;
         }
         
      </script>
      
   </body>
</html>